'''
递归计算阶乘
'''


def exercise(n):
    if n == 1:
        return n
    else:
        return n * exercise(n - 1)


print(exercise(500))
